<template>
	<view>
		<view>
			<view class="uni-padding-wrap uni-common-mt">
				<view class="uni-title uni-common-mt">
					flex-direction: row
					<text>\n横向布局</text>
				</view>
				<view class="uni-flex uni-row">
					<view class="flex-item uni-bg-red">A</view>
					<view class="flex-item uni-bg-green">B</view>
					<view class="flex-item uni-bg-blue">C</view>
				</view>
				<view class="uni-title uni-common-mt">
					flex-direction: column
					<text>\n纵向布局</text>
				</view>
				<view class="uni-flex uni-column">
					<view class="flex-item flex-item-V uni-bg-red">A</view>
					<view class="flex-item flex-item-V uni-bg-green">B</view>
					<view class="flex-item flex-item-V uni-bg-blue">C</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {

		}
	}
</script>

<style>
	.flex-item {
		width: 33.3%;
		height: 200rpx;
		text-align: center;
		line-height: 200rpx;
	}

	.flex-item-V {
		width: 100%;
		height: 150rpx;
		text-align: center;
		line-height: 150rpx;
	}

	.text {
		margin: 15rpx 10rpx;
		padding: 0 20rpx;
		background-color: #ebebeb;
		height: 70rpx;
		line-height: 70rpx;
		text-align: center;
		color: #777;
		font-size: 26rpx;
	}
</style>